package com.nervenets.web.config;

import com.nervenets.utils.PropertiesLoader;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class PropertiesConfiguration {
    @Bean(name = "enumProperties", autowire = Autowire.BY_NAME)
    public PropertiesLoader enumProperties() {
        return new PropertiesLoader("config/enumeration.properties");
    }

    @Bean(name = "configProperties", autowire = Autowire.BY_NAME)
    public PropertiesLoader configProperties() {
        return new PropertiesLoader("config/config.properties");
    }

    @Bean(name = "applicationProperties", autowire = Autowire.BY_NAME)
    public PropertiesLoader applicationProperties() {
        return new PropertiesLoader("config/application.properties");
    }
}
